package com.amumu.drama.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("pms_sku_stock")
public class PmsSkuStock implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品ID")
    @TableId(type = IdType.AUTO, value = "id")
    private Long id;

    @ApiModelProperty(value = "游戏ID")
    @TableField(value = "product_category_id")
    private Long productCategoryId;

    @ApiModelProperty(value = "直充模板ID")
    @TableField(value = "direct_template_id")
    private String directTemplateId;

    @ApiModelProperty(value = "游戏模板ID")
    @TableField(value = "product_template_id")
    private Long productTemplateId;

    @ApiModelProperty(value = "sku编码")
    @TableField(value = "sku_code")
    private String skuCode;

    @ApiModelProperty(value = "直充商品名称")
    @TableField(value = "direct_sku_name")
    private String directSkuName;

    @ApiModelProperty(value = "商品名称")
    @TableField(value = "sku_name")
    private String skuName;

    @ApiModelProperty("sku售价")
    @TableField(value = "price")
    private BigDecimal price;

    @ApiModelProperty("成本价")
    @TableField(value = "cost_price")
    private BigDecimal costPrice;

    @ApiModelProperty("充值类型（0-接口；1-人工）")
    @TableField(value = "recharge_type")
    private Integer rechargeType;

    @ApiModelProperty(value = "库存")
    @TableField(value = "stock")
    private Integer stock;

    @ApiModelProperty(value = "直充库存")
    @TableField(value = "direct_stock_status")
    private Integer directStockStatus;

    @ApiModelProperty(value = "展示图片")
    @TableField(value = "pic")
    private String pic;

    @ApiModelProperty(value = "销量")
    @TableField(value = "sale")
    private Integer sale;

    @ApiModelProperty(value = "锁定库存")
    @TableField(value = "lock_stock")
    private Integer lockStock;

    @TableField(value = "sort")
    private Integer sort;

    @ApiModelProperty(value = "商品销售属性，json格式")
    @TableField(value = "sp_data")
    private String spData;

    @ApiModelProperty(value = "上架状态：0->下架；1->上架")
    @TableField(value = "publish_status")
    private Integer publishStatus;

    @ApiModelProperty(value = "直充上架状态：0->下架；1->上架")
    @TableField(value = "direct_publish_status")
    private Integer directPublishStatus;

    @ApiModelProperty(value = "删除状态：0->未删除；1->删除")
    @TableField(value = "delete_status")
    private Integer deleteStatus;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "商品ID")
    @TableField(value = "product_id")
    private Long productId;

    @ApiModelProperty(value = "预警库存")
    @TableField(value = "low_stock")
    private Integer lowStock;

    @ApiModelProperty(value = "单品促销价格")
    @TableField(value = "promotion_price")
    private BigDecimal promotionPrice;

}